import {MC_MANAGE_AXIOS} from '@/api/axios'

// POST - 添加一条记录
export function saveApi(params) {
    return MC_MANAGE_AXIOS.post('/school/save', params, {headers: {'Content-Type': 'application/json'}})
}

// GET - 查询一条记录
export function getInfoApi(id) {
    return MC_MANAGE_AXIOS.get('/school/getInfo/' + id)
}

// POST - 分页查询记录
export function pageApi(params) {
    return MC_MANAGE_AXIOS.post('/school/page', params, {headers: {'Content-Type': 'application/json'}});
}

// POST - 修改一条记录
export function updateApi(params) {
    return MC_MANAGE_AXIOS.post('/school/update', params, {headers: {'Content-Type': 'application/json'}})
}

// POST - 删除一条记录
export function removeApi(id) {
    return MC_MANAGE_AXIOS.post('/school/remove/' + id)
}

// POST - 批量删除记录
export function removeBatchApi(ids) {
    return MC_MANAGE_AXIOS.post('/school/removeBatch?ids=' + ids)
}

// GET - 查询全部记录
export function listApi() {
    return MC_MANAGE_AXIOS.get('/school/list')
}

// POST - 搜索学校名
export function pageLikeTitleApi(params) {
    return MC_MANAGE_AXIOS.post('/school/pageLikeTitle', params,
        {headers:{'Content-Type': 'application/json'}});
}


